from PyQt4.QtGui import *
from PyQt4.QtCore import *

class Image(QListWidgetItem):

	path = None
	thumbPath = None

	def __init__(self, imgPath, repo):
		print "imgPath ", imgPath
		super(Image, self).__init__(None)

		self.path = imgPath
		self.thumbPath = repo.getThumbnail(self.path)	

		self.setupQListWidgetItem()



	def setupQListWidgetItem(self):
		pic = QPixmap(self.thumbPath)
		icon = QIcon(pic)
		self.setIcon(icon)



